import * as fs from 'fs';
import * as path from 'path';

/**
 * 读取配置文件
 * @param  path 文件名 
 */
export function readJson(file: string) {
    const content = fs.readFileSync(file, 'utf-8');
    return JSON.parse(content);
}
export function mapPath(p: string) {
    return path.resolve(__dirname, '../../', p);
}
